import Request from './request'
import { transform } from './interceptor'
// 具体使用时先实例一个请求对象
const request = new Request({
    baseURL: import.meta.env.MODE === 'development' ? '/api_v1' : `//${import.meta.env.VITE_SERVER_DOMAIN}`,
    timeout: 60000,
    interceptorHooks: transform,
})

export default request
